<template>
  <div>
    <InfoLayout title="开始写信">
      <template #content>
        <div class="InfoSel">

          <el-table :data="tableData" style="width: 100%" @cell-click="cellClick">
            <el-table-column prop="address" label="标题">
            </el-table-column>
            <el-table-column prop="name" label="信件状态" width="100">
            </el-table-column>
            <el-table-column prop="date" label="回复时间" width="100">
            </el-table-column>
          </el-table>
          <WlPagination :total="total" :current-page.sync="pageForm.pageNum" :page-size.sync="pageForm.pageSize">
          </WlPagination>
          <!-- @paginationChange="getList" -->
        </div>
      </template>
    </InfoLayout>
  </div>
</template>

<script>
import InfoLayout from "@STmailboxesWeb/components/infoLayout";
import WlPagination from "@/components/common/wl-pagination";
export default {
  components: {
    InfoLayout,
    WlPagination
  },
  name: "InfoSel",
  data() {
    return {
      tableData: [{
        date: '2016-05-02',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      }, {
        date: '2016-05-04',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      },
      {
        date: '2016-05-02',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      }, {
        date: '2016-05-04',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      },
      {
        date: '2016-05-02',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      }, {
        date: '2016-05-04',
        name: '办结',
        address: '【问政四川】高二休学想问问具体的复学内容'
      },



      ],
      // 主表格分页参数
      pageForm: {
        pageNum: 1,
        pageSize: 10,
      },
      total: 10,
    };
  },
  created() {
    console.log("this.$router---", this.$route);
  },
  methods: {
    handleChange(file, fileList) {
      this.fileList = fileList.slice(-3);
    },
    cellClick(row) {
      this.$router.push({
        path: "/InfoDetail",
      });
    }
  },
};
</script>

<style lang='scss' scoped>
::v-deep {
  .InfoSel .el-table {
    border-bottom: 1px dashed #698AB7 !important;
  }

  .InfoSel tr {
    height: 40px;
  }

  thead th>div {
    height: 40px;
    background: #E5EDF5;
    width: 28px;
    font-size: 14px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #225483;
    line-height: 40px;
    text-align: left;
    border-bottom: 1px dashed #698AB7;
  }

  .InfoSel .el-table__cell {
    padding: 0;
    height: 40px;
  }

  .InfoSel .el-table .cell {
    line-height: 40px;

  }

  .wl-pagination {
    margin: 20px 0px;
  }
}
</style>